mv access.log access-`date -d yesterday +%Y-%m-%d`.log

/usr/sbin/nginx -s reload
